package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ClassName: IdWorkersProperties
 * Package: com.itheima.stock.properties
 * Description: id worker 属性类
 *
 * @Author Lee
 * @Create 2024/10/31
 */
@Data
@Component
@ConfigurationProperties(prefix = "id-worker.config")
public class IdWorkersProperties {
    /**
     * 数据中心Id
     */
    private long datacenterId;
    /**
     * 机器Id
     */
    private long machineId;
}
